# coding:utf8
"""
From https://pypi.org/project/elasticsearch/
"""

from elasticsearch2 import Elasticsearch


def http_info():
    # es = Elasticsearch("https://elasticsearch.url:port", http_auth=('elastic','yourpassword'))
    es = Elasticsearch("http://localhost:9200")
    info = es.info()
    print(info)

if __name__ == "__main__":
    http_info()